#ifndef OUTGOING
#define OUTGOING
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/asio/error.hpp>
#include <boost/shared_ptr.hpp>

#include <string>
#include <cstdint>

using boost::asio::ip::tcp;
using boost::asio::deadline_timer;

const unsigned short port = 10203;

class Connection {
private:
	boost::asio::io_service _io;
	tcp::endpoint _dest;
	tcp::socket _sock;

	boost::system::error_code ecode;

	std::string _host;

public:
	Connection(const std::string &host, unsigned short port);
	void run(void);

	bool Alive();

	void ThreadMain();
};

#endif